<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>js数组</title>
		<script>
			var ar=[10,2,32,52,6,8,92,114,12,156];
			ar.map(x=>console.log(x));
			console.log(">>>>>>>>>>>>>>>>>");
			
			for(let i=0;i<ar.length;i++){
				console.log(ar[i]);
			}
			console.log(">>>>>>>>>>>>>>>>>");
			for(let o in ar){//o是下标
				console.log(o,ar[o]);
			}
			console.log(">>>>>>>>>>>>>>>>>");
			for(let o of ar){//o是数组中的每个对象
				console.log(">>>",o);
			}
		</script>
	</head>
	<body>
	</body>
</html>